package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.sql.Timestamp;


/**e
 * @Author: lu
 * @Date: 2024-04-12-14:47
 * @Description:
 */
@Data
@TableName("person_user")
public class Message {
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Integer id;

    @TableField("username")
    private  String userName;

    @TableField("password")
    private  String passWord;

    @TableField("email")
    private  String email;

    @TableField("last_login_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp lastLoginTime;

    @TableField("phone")
    private String phone;

    @TableField("nickname")
    private  String nickName;

    @TableField("create_time")
    private  Timestamp createTime;

    @TableField("update_time")
    private  Timestamp updateTime;
}
